#ifndef INIT_H
#define INIT_H

#define CARD_SCORE_POS_COMP_Y 0
#define SCORE_POS_COMP_Y 30
#define CARD_SCORE_POS_HUMAN_Y 430
#define SCORE_POS_HUMAN_Y 460

#include "SDL.h"
#include "SDL_image.h"
#include <iostream>
#include <sstream>

class Init {
	public:
		Init();
		bool MySDL_Load_Image(std::string, unsigned int priority = 0, 
				      unsigned int picture_nb = 0);
		bool MySDL_ApplySurface(int, int, SDL_Surface *, SDL_Surface *, 
					SDL_Rect *clip = NULL);
		SDL_Surface *GetScreenAddress();
		SDL_Surface *GetImageAddress();
		SDL_Surface *GetBackgroundImageAddress();
		SDL_Surface *GetBufferImageAddress(int);
		std::string ConvertIntToString(int);
		bool DeletePieceOfScreen(int, int, int h=60, int w=160);
	private:
		SDL_Surface *screen;
		SDL_Surface *image;	//Image is card
		SDL_Surface *background_image;
		SDL_Surface *image_buf[100];	//image_buf is any picture
		unsigned int buffer_count;
};

#endif